function T=taylor(k,t)
    M(1) = g(1, t);
    M(2) = g(0.5, t);
    M(3) = -g(0.125, t);

    for i=3:k,
        M(i+1)=g(sumatoria_taylor(i,t), t);
    end

    T = g(sumatoria(M, t), t);
end
